package com.beerandjesus.sportofkings.handicapper.factory.brisnet.singlefile;

import com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.JockeyAtDistanceOrOnTurf;
import com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.JockeyAtDistanceOrOnTurfImpl;

public class JockeyAtDistanceOrOnTurfFactoryImpl extends
		AbstractObjectFactoryImpl implements JockeyAtDistanceOrOnTurfFactory {

	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.factory.brisnet.singlefile.JockeyAtDistanceOrOnTurfFactory#getJockeyAtDistanceOrOnTurf(java.lang.String)
	 */
	public JockeyAtDistanceOrOnTurf getJockeyAtDistanceOrOnTurf(String line) {
		String[] values = getValues(line);
		return getJockeyAtDistanceOrOnTurf(values);
	}

	public JockeyAtDistanceOrOnTurf getJockeyAtDistanceOrOnTurf(String[] values) {
		JockeyAtDistanceOrOnTurfImpl j = new JockeyAtDistanceOrOnTurfImpl();
		
		j.setLabel(val(values,1367));
		j.setStarts(val(values,1368));
		j.setWins(val(values,1369));
		j.setPlaces(val(values,1370));
		j.setShows(val(values,1371));
		j.setRoi(val(values,1372));
		j.setEarnings(val(values,1373));
		
		return j;
	}

}
